package com.sixth.docker.controller;

import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A;
import com.sixth.core.entity.CareHistory;
import com.sixth.core.vo.R;
import com.sixth.docker.service.CareHistoryService;
import com.sixth.docker.service.CareOrderService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @program: sixth-hospital-parent
 * @description:
 * @author: 赵庆龙
 * @create: 2024-08-19 17:17
 **/
@RestController
@RequestMapping("/doctor/careHistory")
public class CareHistoryController {
    @Autowired
    private CareHistoryService careHistoryService;

    @GetMapping("/CareHistoryByRegId/{registrationId}")
    public R<CareHistory> CareHistoryByRegId(@PathVariable String registrationId)
    {
        return careHistoryService.selectById(registrationId);
    }
    @ApiOperation("根据id修改内容")
    @PutMapping("/updateCareHistory")
    public R<CareHistory> updateCareHistory(@RequestBody CareHistory careHistory)
    {
        return careHistoryService.updateById(careHistory);
    }
}
